package net.wanho.shop.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 这个类是：
 *
 * @author: MENG HU WANG
 * @date: 2024/12/25 10:44
 * @version: 1.0
 */
@Data
@ApiModel(value = "用户信息", description = "用户信息")
public class UserVo implements Serializable {
    @ApiModelProperty(value = "管理员id")
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "状态，0启用，1禁用")
    private Integer mgState;

    @ApiModelProperty(value = "角色名称")
    private String roleName;
}
